package com.scalar.chiptrack.operations.processtypesetup.forms;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.ChipTrackActionForm;

public class ProcessTypeSetupForm extends ChipTrackActionForm 
{
    private String action 		= null;
    private int processTypeId	= -1;
    private String processName 	= null;
    private String processType 	= null;
    private String processOrder = null;
    private String inventoryType   = "WIP";
    private ArrayList processParameters = null;
    
	public void reset( ActionMapping mapping, HttpServletRequest request )
   	{
		processName = null;
        processType = null;
        if( processParameters == null  )
        {
			processParameters = new ArrayList();
        }
   	}

    public String getAction()
    {
        return action;
    }

    public String getProcessName()
    {
        return processName;
    }

    public String getProcessType()
    {
        return processType;
    }

    public void setAction(String string)
    {
        action = string;
    }

    public void setProcessName(String string)
    {
        processName = string;
    }

    public void setProcessType(String string)
    {
        processType = string;
    }

    public ArrayList getProcessParameters()
    {
        return processParameters;
    }

    public void setProcessParameters(ArrayList list)
    {
        processParameters = list;
    }

    public int getProcessTypeId()
    {
        return processTypeId;
    }

    public void setProcessTypeId(int i)
    {
        processTypeId = i;
    }

    public String getProcessOrder() {
        return processOrder;
    }

    public void setProcessOrder(String processOrder) {
        this.processOrder = processOrder;
    }

    public String getInventoryType() {
        return inventoryType;
    }

    public void setInventoryType(String inventoryType) {
        this.inventoryType = inventoryType;
    }
}